#include <stdio.h>
#include <pthread.h>
#define SIZE 2

void* thread_start(void* arg)
{
    printf("i am work\n");
}

int main()
{
    pthread_t pt[SIZE];
    for(int i=0; i < SIZE; ++i){
       int ret = pthread_create(&pt[i], NULL, thread_start, NULL);
         if(ret != 0){
             perror("pthread_create");
             return 0;
         }   
    }
    
    for(int i=0; i < SIZE; ++i){
        pthread_join(pt[i], NULL);
    }
    return 0;
}
